//引入element
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// 引入中英文
import zhCn from "element-plus/es/locale/lang/zh-cn"
import en from "element-plus/es/locale/lang/en"
import store from "@/store"


// 抛出 并且进行语言包的转换 直接操作element 的语言
export default app => {
  app.use(ElementPlus,{
    locale: store.getters.language === "en" ? en :zhCn
  })
}